<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>错误页面</title>
    <script src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
</head>
<body>
<h1>错误页面</h1>
服务器内部错误：${ex.msg} <br>
<div id="digit">5</div>秒钟后返回原页面 <a href="${url}">手动跳转</a>

<script type="text/javascript">
    $(function (){
        let  count =5;
        let timer = setInterval(() => {
            count = count-1;
            if (count <= 0) {
                clearInterval(timer);
                timer = null;
                //跳转的页面写在此处
                location.href="${url}"
            }
            $("#digit").text(count);
        }, 1000)
    });
</script>
</body>
</html>
